package org.inspiration.dudu.common.exception;

import lombok.Getter;
import lombok.Setter;
import org.inspiration.dudu.common.constant.Constant;

@Setter
@Getter
public class ServiceException extends RuntimeException {
    private Integer code;

    public ServiceException(String message) {
        super(message);
        code = Constant.SERVER_ERROR_CODE;
    }

    public ServiceException(Integer code, String message) {
        super(message);
        this.code = code;
    }

}
